<?php

class ApisController extends ApiController {

	/**
	 * 调用方法 Lib\Apis::Sample_v1_apis(['xxx' => 1, 'b' => [1,2]])
	 * @param $args
	 * @return bool
	 */
	public function indexInterface($args) {
		return $this->successMessage('', array('args' => $args));
	}

	/**
	 * 调用方法 Lib\Apis::Sample_v1_apis_get(['xxx' => 1, 'b' => [1,2]], [1,2,3], 1)
	 * @param $args
	 * @param $ids
	 * @param $type
	 * @return bool
	 */
	public function getInterface($args, $ids = array(), $type = 0) {
		if ($type == 0) {
			$this->errorMessage('参数错误', 1001);
		}
		return $this->successMessage('', array('args' => $args));
	}

}
